import request from "@/utils/request";
type Subjectdajuan = {
    subjectId: null
    pageIndex: number
    pageSize: number
}
type SubjectResponseType<T> = {
    total: number
    list: T[]
}
export type SubjectdaType = {
    id: Number,
    createTime: string,  //提交时间
    userScore: number,  //用户得分
    subjectName: string,  //学科名称
    subjectId: number,  //学科Id  
    questionCount: number,  //题目数量
    questionCorrect: number,  //正确题目数
    paperScore: number, //试卷总分
    doTime: string,  //耗时
    paperType: number,  //试卷类型
    systemScore: number,  //自动批改得分
    status:number,  //答卷状态
    paperName: string,  //试卷名称
    userName: string //用户名
}
export function subjectPage(data:Subjectdajuan) {
    return request.post<SubjectResponseType<SubjectdaType>>("/api/admin/examPaperAnswer/page",data)
}
